package com.kfdx.dc.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kfdx.dc.domain.DcOrderDetail;

/**
 * 订单明细Mapper接口
 *
 * @author cx
 * @date 2024-09-23
 */
public interface DcOrderDetailMapper extends BaseMapper<DcOrderDetail>
{
    /**
     * 查询订单明细
     *
     * @param orderId 订单明细主键
     * @return 订单明细
     */
    public DcOrderDetail selectDcOrderDetailByOrderId(Long orderId);

    /**
     * 查询订单明细列表
     *
     * @param dcOrderDetail 订单明细
     * @return 订单明细集合
     */
    public List<DcOrderDetail> selectDcOrderDetailList(DcOrderDetail dcOrderDetail);

    /**
     * 新增订单明细
     *
     * @param dcOrderDetail 订单明细
     * @return 结果
     */
    public int insertDcOrderDetail(DcOrderDetail dcOrderDetail);

    /**
     * 修改订单明细
     *
     * @param dcOrderDetail 订单明细
     * @return 结果
     */
    public int updateDcOrderDetail(DcOrderDetail dcOrderDetail);

    /**
     * 删除订单明细
     *
     * @param orderId 订单明细主键
     * @return 结果
     */
    public int deleteDcOrderDetailByOrderId(Long orderId);

    /**
     * 批量删除订单明细
     *
     * @param orderIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDcOrderDetailByOrderIds(Long[] orderIds);
}
